﻿package plugin.npcDialog.ui.panels.boss
{
    import com.core.*;
    import com.sh.game.global.*;
    import flash.events.*;
    import flash.geom.*;
    import manager.*;
    import uiresource.npcdialogs.*;

    public class MbczUICtrl extends MbczUI implements INpcDialogContent
    {

        public function MbczUICtrl()
        {
            this.intiEvent();
            return;
        }// end function

        private function intiEvent() : void
        {
            label_jinru.addEventListener(MouseEvent.CLICK, this.clickHandler);
            return;
        }// end function

        protected function clickHandler(event:MouseEvent) : void
        {
            this.close();
            var _loc_2:* = int((GlobalLayer.instance.root.stageWidth - 700) / 2);
            ModelProxy.change("plugin", "open", {target:"mobai", point:new Point(GlobalLayer.instance.root.stageWidth / 2, GlobalLayer.instance.root.stageHeight / 2 - 120), top:new Point(_loc_2, 100), data:1});
            PluginManager.instance.closePlugin("npcdialog");
            return;
        }// end function

        public function show(param1:Object, param2:Object) : void
        {
            return;
        }// end function

        public function close() : void
        {
            if (this.parent)
            {
                this.parent.removeChild(this);
            }
            return;
        }// end function

        public function update(param1:Object, param2:int = 0) : void
        {
            return;
        }// end function

    }
}
